from django.db import models

# Create your models here.

class UserModel(models.Model):
    name = models.CharField(max_length=50, unique=True)
    shouji = models.CharField(max_length=11)
    class Meta:
        db_table = 'usermodel'


class Goods(models.Model):
    text = models.CharField(max_length=255, unique=True)
    price = models.CharField(max_length=255)
    img = models.ImageField(upload_to='static/upload/')
    class Meta:
        db_table = 'goods'

class DingdanModle(models.Model):
    name = models.CharField(max_length=50, null=True)
    shouji = models.CharField(max_length=11)
    text = models.CharField(max_length=255)
    class Meta:
        db_table = 'dingdanmodle'
